* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

.container {
  width: 380px;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 15px;
  color: #e2231a;
}

.status-container, .book-info, .settings, .progress-container {
  margin-bottom: 12px;
  padding: 8px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.status-container {
  display: flex;
  align-items: center;
}

.status-label {
  font-weight: bold;
  margin-right: 10px;
}

.status-value {
  color: #666;
}

.book-id-container, .book-title-container, .interval-container, .output-container {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.book-id-container input {
  flex: 1;
  margin-right: 5px;
}

label {
  width: 100px;
  font-weight: bold;
}

input[type="text"], input[type="number"] {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.title-label, .output-label {
  width: 100px;
  font-weight: bold;
}

.title-value, .output-value {
  flex: 1;
  color: #666;
}

.progress-container {
  margin-top: 15px;
}

.progress-label {
  font-weight: bold;
  margin-bottom: 5px;
}

.progress-bar-container {
  height: 10px;
  background-color: #eee;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 5px;
}

.progress-bar {
  height: 100%;
  width: 0;
  background-color: #e2231a;
  transition: width 0.3s;
}

.progress-text {
  text-align: right;
  font-size: 12px;
  color: #666;
}

.log-container {
  margin-top: 15px;
  margin-bottom: 15px;
}

.log-label {
  font-weight: bold;
  margin-bottom: 5px;
}

.log-content {
  height: 100px;
  padding: 8px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: #666;
}

.buttons {
  display: flex;
  justify-content: space-between;
}

.btn {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.start {
  background-color: #e2231a;
}

.start:hover {
  background-color: #c61e16;
}

.stop {
  background-color: #7f8c8d;
}

.stop:hover {
  background-color: #6c7a7a;
}

.btn:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

.detect {
  background-color: #2980b9;
  padding: 6px 8px;
  font-size: 12px;
}

.detect:hover {
  background-color: #2471a3;
} 